<div class="panel panel-default panel-intro">
    <div class="panel-body">
        <table class="table table-striped table-bordered table-hover table-nowrap">
            <tr>
                <td>客户：</td>
                <td>{$row.business.nickname}</td>
                <td>联系方式：</td>
                <td>{$row.business.mobile}</td>
            </tr>
            <tr>
                <td>收货人：</td>
                <td>{$row.address.consignee}</td>
                <td>收货人联系方式：</td>
                <td>{$row.address.mobile}</td>
            </tr>
            <tr>
                <td>收货地址：</td>
                <td>{$row.address.provinces.name}{$row.address.citys.name}{$row.address.districts.name} {$row.address.address}</td>
                <td>订单状态：</td>
                <td>{$row.status_text}</td>
            </tr>
            <tr>
                <td>订单号：</td>
                <td>{$row.code}</td>
                <td>订单金额：</td>
                <td>{$row.amount}</td>
            </tr>
            <tr>
                {if condition="$row.expressid && $row.expresscode"}
                    <td>配送物流：</td>
                    <td>{$row.express.name}</td>
                    <td>配送物流单号：</td>
                    <td>{$row.expresscode}</td>
                {/if}
            </tr>
            <tr>
                {if condition="$row.adminid"}
                    <td>销售员：</td>
                    <td>{$row['sale']['username']}</td>
                {/if}

                {if condition="$row.checkmanid"}
                    <td>审核员：</td>
                    <td>{$row.review.username}</td>
                {/if}
            </tr>

            <tr>
                {if condition="$row.shipmanid"}
                    <td>发货员：</td>
                    <td>{$row.dispatched.username}</td>
                {/if}
            </tr>

            <tr>
                {if condition="$row.remark"}
                    <td>订单备注：</td>
                    <td>{$row.remark}</td>
                {/if}
            </tr>

            <tr>
                {if condition="$row.refundreason"}
                    <td>客户退货原因：</td>
                    <td>{$row.refundreason}</td>
                {/if}
            </tr>

            <tr>
                {if condition="$row.examinereason"}
                    <td>审核退货原因：</td>
                    <td>{$row.examinereason}</td>
                {/if}
            </tr>
        </table>

        <table class="table table-striped table-bordered table-hover table-nowrap">
            <tr>
                <th>商品名称</th>
                <th>商品数量</th>
                <th>商品单价</th>
                <th>总价</th>
            </tr>
            {foreach($OrderProductData as $item)}
                <tr>
                    <td>{$item.products.name}</td>
                    <td>{$item.pronum}</td>
                    <td>{$item.price}</td>
                    <td>{$item.total}</td>
                </tr>
            {/foreach}
        </table>
    </div>
</div>